<div class='media_elm'><?$url=$media->get_resized_url(100,100);echo html::image(array('src'=>$url));?></div>